package com.example.mapper;

import com.example.entity.Account;
import com.example.entity.User;

import java.util.List;

//@Mapper
public interface UserMapper {

    List<User> selectAll(String name);

    void insert(User user);

    int selectByUsername(String username);

    void updateById(Account user);

    void deleteById(Integer id);

    User selectByUsernameAndPassword(String username, String password);

    Account selectById(String userId);
}